const {ccclass, property} = cc._decorator;

@ccclass
export default class level_relationalGraphItemBase extends cc.Component {

    @property({type:cc.Node,tooltip:"头像节点"})
    headNode:cc.Node = null;

    roleId:string = "";

    roleName:string = "";

    bindData(roleId:string,name:string){
        this.roleId = roleId;
        this.roleName = name;
    }

    loadItem(){

    }

    getRoleId(){
        return this.roleId;
    }

    getRoleName(){
        return this.roleName;
    }

    //头像回到原点
    headChangeBack(){
        this.headNode.x = 0;
        this.headNode.y = 0;
    }


}
